package com.admgt.resource.service;

import org.apache.commons.net.ftp.FTPClient;

import com.admgt.resource.dao.LoadingInfoDao;
import com.admgt.resource.entity.LoadingInfo;
import com.admgt.resource.service.ResourceServiceImpl.UploadStatus;

public interface ResourceService {
	void setLoadingInfoDao(LoadingInfoDao loadingInfoDao);
	FTPClient getFtpClient();
	public FTPClient connectFtpServer(String hostname,int port,String username,String password)throws FtpUsernameOrPwdException;
	public boolean initFileType();
	UploadStatus upload(String localPath, String ftpServerFileName)throws Exception;
	boolean uploadAll();
	boolean cancelAll();
	boolean back();
	boolean filterByType();
	boolean download(String localPath, String ftpServerFileName)throws Exception;
	boolean downloadAll();
	boolean loadingProgress();
	
	boolean updateProgressData();
	int updateProgress(int id,String ftpServerFileName, String localPath)throws Exception;
	Object[] addLoadingInfo(String ftpServerFileName, String localPath) throws Exception;
}
